package com.wsoft.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wsoft.cms.entity.CmsAnnouncementSignEntity;
import com.wsoft.cms.query.sign.SignListQuery;
import com.wsoft.cms.query.sign.SignQuery;

/**
 * <p>
 * 用户通告报名记录表 服务类
 * </p>
 *
 * @author juiet
 * @since 2024年11月27日 10:38:58
 */
public interface ICmsAnnouncementSignService extends IService<CmsAnnouncementSignEntity> {

    /**
     * 报名/取消报名
     * @param query
     * @param isSign
     * @return
     */
    boolean sign(SignQuery query, boolean isSign);

    /**
     * 列表查询
     * @param query
     * @return
     */
    PageInfo<CmsAnnouncementSignEntity> listSign(SignListQuery query);
}
